package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * @descriptions: ...
 * @author: 唐杰
 * @date: 2019/11/20  19:44
 * @version: 1.0
 */
public interface RoleService {
    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //添加角色信息
    public void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    //编辑角色信息
    public void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    //查询所有角色信息
    public List<Role> findAll();

    //根据id查询角色信息
    public Role findById(Integer roleId);

    //回显权限复选框
    public List<Integer> findPermissionIdsByRoleId(Integer roleId);

    //回显菜单复选框
    public List<Integer> findMenuIdsByRoleId(Integer roleId);

    //根据id删除角色信息
    public void delete(Integer id);
}
